<template>
    <view class="page">
        <!-- 发票列表 -->
        <view class="invoice-list">
            <view class="list" v-for="(item,index) in 6" :key="index">
                <view class="content">
                    <view class="title">
                        <text>深圳是奥啥都奥康</text>
                    </view>
                    <view class="identify-num">
                        <text>91440300MA5FQYCP55</text>
                    </view>
                </view>
                <view class="edit">
                    <text class="iconfont icon-edit1"></text>
                </view>
            </view>
        </view>
        <!-- 添加按钮 -->
        <view class="add-btn">
            <view class="btn" @click="onInvoiceAdd">
                <text class="iconfont icon-jia"></text>
                <text>发票信息添加</text>
            </view>
        </view>
    </view>
</template>

<script>
export default {
    data() {
        return {

        };
    },
    methods: {
        /**
         * 发票添加点击
         */
        onInvoiceAdd() {
            uni.navigateTo({
                url: '/pagesA/setting/invoiceAdd',
            })
        }
    }
}
</script>

<style scoped lang="scss">
.page {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
}

/* 发票列表 */
.invoice-list {
    padding: 0 4%;
    margin-top: 20rpx;
    padding-bottom: 120rpx;
    .list {
        display: flex;
        align-items: center;
        padding: 0 4%;
        height: 140rpx;
        background-color: #ffffff;
        border-radius: 20rpx;
        margin-bottom: 20rpx;
        box-shadow: 0 0 10rpx #f1f1f1;
        .content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            width: 80%;
            height: 100%;
            .title {
                display: flex;
                align-items: center;
                width: 100%;
                text {
                    font-size: 28rpx;
                    color: #222222;
                }
            }
            .identify-num {
                display: flex;
                align-items: center;
                width: 100%;
                margin-top: 20rpx;
                text {
                    font-size: 26rpx;
                    color: #959595;
                }
            }
        }
        .edit {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            width: 20%;
            height: 100%;
            text {
                font-size: 38rpx;
                color: #959595;
            }
        }
    }
}

/* 添加按钮 */
.add-btn {
    position: fixed;
    left: 0;
    bottom: 20rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100rpx;
    .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 90%;
        height: 70rpx;
        background: linear-gradient(to right, $base, $change-clor);
        box-shadow: 0 10rpx 10rpx $base;
        border-radius: 70rpx;
        text {
            font-size: 28rpx;
            color: #ffffff;
            margin-left: 10rpx;
        }
    }
}
</style>
